#{extends 'frame.html' /}

#{set title:'买号管理' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/admin/buyer-account.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />

#{/set}



<div class="contentCard">

	<div class="contentTitle">买号列表</div>

	<div id="taskFilterPanel">

		<span class="floatLeft mr10">所属账号</span>

		<input type="text" id="userNick" class="inputText floatLeft mr10" />

		<span class="floatLeft mr10">旺旺ID</span>

		<input type="text" id="nick" class="inputText floatLeft mr10" />

		<span class="floatLeft mr10">状态</span>

		<select class="floatLeft mr10 mt4" id="status">

			<option value="">全部</option>

			#{list items:ExamineStatus, as:'s'}

			<option value="${s}" >${s?.title}</option>

			#{/list}

		</select>



		<a class="stdColorButton floatLeft queryBtn"  href="javascript:;" id="queryBtn">查询</a>

	</div>

	<div class="">

		<table class="normTable">

			<thead>

				<tr>

					<td width= '30px'>ID</td>

					<td>所属账号</td>

					<td>平台</td>

					<td>买号</td>

					<td width= '150px'>收货信息</td>

					<td>联系电话</td>

					<td>创建时间</td>

					<td>修改时间</td>

					

					<td>接单统计</td>

					<td width= '150px'>审核不通过原因</td>

					<td>状态</td>

					<td>操作</td>

					</tr>

			</thead>

			<tbody id="accountContainer"></tbody>

		</table>

		<div id="noMsg">

			<div class="warnBox">

				<span class="iconfont">&#xf00b6;</span>

				没有买号!

			</div>

		</div>

		<div class="pagin-btm clearFix" style="display: none;">

			<div class="pagination"></div>

		</div>

		<div class="popWrapper" style="display: none;" id="tr_loading_mask">

			<div class="maskLayer"></div>

			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />

		</div>

	</div>

</div>



<!--拒绝理由窗口-->

<div class="popWrapper" id="refuseReasonWnd">

	<div class="maskLayer"></div>

	<div class="modalWnd">

		<a href="javascript:;" class="wnd_Close_Icon" title="关闭窗口"></a>

		<h3 class="topTile">重新将该买号设置为：审核不通过</h3>

		<div class="modalWndInner">

			<div id="refuseReasonShower">

				<textarea class="inputText" id="txtRefuseReason"></textarea>

			</div>

		</div>

		<div class="wndBotButtonSection">

			<a id="btnRefuse" href="javascript:;" class="botButton" data-bid="">确认</a>

		</div>

	</div>

</div>

<!-- 修改买号窗口 -->

<div class="popWrapper" id="modifyAccountWnd">

	<div class="maskLayer"></div>

	<div class="modalWnd">

		<a href="javascript:;" class="wnd_Close_Icon" id="btnCloseAddWnd" title="关闭窗口"></a>

		<h3 class="topTile">修改买号</h3>

		<div class="modalWndInner">

			<form id="modifyForm">

				<div id="shopInfoShower">

				    <div class="paneLine clearfix">

				    	<label class="floatLeft">所属账号</label>

				    	<span id="spUserNick"></span>

				    </div>

					<div class="panelLine ">

						<label class="floatLeft wangwangID">旺旺ID</label>

						<input type="text" class="inputText floatLeft mr20 required" id="txtNick" name="nick"  />

					</div>

					<div class="panelLine">

						<label class="floatLeft">收货人姓名</label>

						<input type="text" class="inputText floatLeft mr20 required" id="txtConsignee" name="consignee"/>

					</div>

					<div class="panelLine">

						<label class="floatLeft">所在地区</label>

						<div id="selectAdd" class="">

							<select class="selectAddress required province" id="first" name="first">

								<option value="" selected="selected">请选择</option>



							</select>

							<select class="selectAddress required city" id="second" name="second">

								<option value="" selected="selected">请选择</option>

							</select>

							<select class="selectAddress required region" id="thrid" name="thrid">

								<option value="" selected="selected">请选择</option>

							</select>

						</div>

					</div>

					<div class="panelLine">

						<label class="floatLeft">街道地址</label>

						<input type="text" class="inputText floatLeft mr20 long required" id="txtAddress" name="address"/>

					</div>

					<div class="panelLine">

						<label class="floatLeft">收货人手机号</label>

						<input type="text" class="inputText floatLeft mr20 required" id="txtMobile" name="mobile"/>

					</div>

				</div>

			</form>

		</div>

		<div class="wndBotButtonSection">

			<a id="btnAccountSave" href="javascript:;" class="botButton btnConfirmSave">确认</a>

		</div>



	</div>



</div>

<textarea id="quyuTemp" class="muban">

	{{#results}}

	<option rid="{{id}}">{{name}}</option>

	{{/results}}

</textarea>

<!--keyword muban-->

<textarea class="muban" id="trowTemp">

	{{#results}}

	<tr data-bid="{{id}}">

		<td class="id">{{id}}</td>

		<td class="userNick">{{userNick}}</td>

		<td> <i class="plat_small {{platIcon}}"></i>

			{{platformName}}

		</td>

		<td class="nick">{{nick}}</td>

		<td>

			<span class="consignee">{{consignee}}</span>&nbsp;<span class="state">{{state}}</span>&nbsp;<span class="city">{{city}}</span>&nbsp;<span class="region">{{region}}</span>&nbsp;<span class="address">{{address}}</span>

		</td>

		<td class="mobile">{{mobile}}</td>

		<td class="createtime">{{createtime}}</td>

		<td class="modifytime">{{modifytime}}</td>

		

		<td><span>总：{{totalTakenNum}}单</span><br>

			<span>月:{{mouthTakenNum}}单</span><br>

			<span>周 {{weekTakenNum}}单</span>

		</td>

		<td class="">

						{{#memos}}

						<span class="">{{content}}[{{dateTimeStr}}]</span><br/>

						{{/memos}}

		</td>

		<td >

			<span>{{accountStatus}}</span>

			{{#isPass}}

			<input type="button" class="J_notpass queryBtn green bold" href="javascript:;" value=" 审核不通过 ">

			{{/isPass}}

			{{#notPass}}

			<input type="button" class="J_pass queryBtn green bold" href="javascript:;"data-bid="{{id}}" value=" 审核通过 ">

			{{/notPass}}

		</td>

		<td><a href="javascript:;" class="modifyBtn blue" data-bid="{{id}}">修改</a></td> 

	</tr>

	{{/results}}

</textarea>

#{set 'moreScripts'}

<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/admin/buyerAccount.js'}" type="text/javascript"></script>

<script type="text/javascript">App.module = 'account';</script>

#{/set}